Description: fix underlinked libraries
 Each of these libraries is built twice, first as .so with gcc, then as .a with
 ar. We need to provide libraries only when dynamic library is built.
Author: Ilya Barygin <randomaction@ubuntu.com>

--- a/ofstd/libsrc/Makefile.in
+++ b/ofstd/libsrc/Makefile.in
@@ -29,7 +29,11 @@
 
 
 $(library): $(objs)
+ifeq ($(AR),ar)
 	$(AR) $(ARFLAGS) $@ $(objs)
+else
+	$(AR) $(ARFLAGS) $@ $(objs) $(LIBS)
+endif
 	$(RANLIB) $@
 
 
--- a/dcmsign/libsrc/Makefile.in
+++ b/dcmsign/libsrc/Makefile.in
@@ -34,7 +34,11 @@
 
 
 $(library): $(objs)
+ifeq ($(AR),ar)
 	$(AR) $(ARFLAGS) $@ $(objs)
+else
+	$(AR) $(ARFLAGS) $@ $(objs) $(OPENSSLLIBS)
+endif
 	$(RANLIB) $@
 